import request from '@/utils/request'

export function queryRoleByPage(params) {
  return request({
    url: '/role/queryAllByPage',
    method: 'get',
    params
  })
}

// export function deleteRole(id) {
//   return request({
//     url: `/vue-element-admin/role/${id}`,
//     method: 'delete'
//   })
export function deleteRole(id) {
  return request({
    url: `/role/deletes/${id}`,
    method: 'delete'
  })
}
